package string;

import java.util.Vector;

/**
 * toString 地狱
 */
public class ToStringHell {
    @Override
    public String toString() {
//        return "Address:" + this;
        return "Address:" + super.toString();
    }

    public static void main(String[] args) {
//        System.out.println(new ToStringHell());
        Vector<ToStringHell> vector = new Vector<>();
        for (int i = 0; i < 10; i++) {
            vector.add(new ToStringHell());
        }
        System.out.println(vector);
    }
}
